package cn.itsource.pet.ro;

import cn.itsource.pet.domain.SearchMasterMsg;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

@Data
public class PublishRo {
    private String name;
    private BigDecimal price ;
    private Integer age;
    private Boolean gender;
    private String coatColor;
    private String resources;
    private Long petType;
    private String address;
    private String title;

    public static SearchMasterMsg publishRoToMsg(PublishRo publishRo){
        SearchMasterMsg searchMasterMsg = new SearchMasterMsg();
        BeanUtils.copyProperties(publishRo,searchMasterMsg);
        return searchMasterMsg;
    }
}
